home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr22 / gnplt.zip / PARAM.DEM < prev    next >
Text File  |  1993-05-11  |  1KB  |  49 lines

  1. #
  2. # $Id: param.demo 3.38 1992/11/06 06:33:50 woo Exp $
  3. #
  4. # Show some of the new parametric capabilities.
  5. #
  6. set parametric
  7. set dummy t
  8. set autoscale
  9. set samples 160
  10. set title ""
  11. plot t,sin(t)/t title "t,sin(t)/t or sin(x)/x"
  12. pause -1 "Hit return to continue"
  13.  
  14. plot sin(t)/t,t
  15. pause -1 "Hit return to continue"
  16.  
  17. plot sin(t),cos(t)
  18. pause -1 "Hit return to continue"
  19.  
  20. set xrange [-3:3]
  21. set yrange [-3:3]
  22. set title "Parametric Conic Sections"
  23. plot -t,t,cos(t),cos(2*t),2*cos(t),sin(t),-cosh(t),sinh(t)
  24. set title ""
  25. pause -1 "Hit return to continue"
  26.  
  27. set xrange [-5:5]
  28. set yrange [-5:5]
  29. plot tan(t),t,t,tan(t)
  30. pause -1 "Hit return to continue"
  31.  
  32. set trange [0.00001:3]
  33. plot t,log(t),-t,log(t),sin(t),t**2,-sin(t),t**2
  34. pause -1 "Hit return to continue"
  35.  
  36. set autoscale x
  37. set yrange [-1.5:1.5]
  38. set trange [0.0001:10*pi]
  39. plot sin(t)/t,cos(t)/t
  40. pause -1 "Hit return to continue"
  41.  
  42. # undo what we've done above
  43. set noparametric
  44. set samples 160
  45. set autoscale xy
  46. set title ""
  47. set offset 0,0,0,0
  48. set key
  49.